//
//  VideoCell.m
//  EconomyDemo
//
//  Created by qianfeng01 on 15-7-7.
//  Copyright (c) 2015年 xiangmu. All rights reserved.
//

#import "VideoCell.h"
#import "UIImageView+WebCache.h"
#import "PlayViewController.h"
@implementation VideoCell

- (void)awakeFromNib {
    
}

- (void)showDataWithModel:(PictureModel *)model{
    
    NSString *url=[NSString stringWithFormat:@"%@%@",model.path,model.thumbnails_url];
    [self.ImageView sd_setImageWithURL:[NSURL URLWithString:url]];
    self.titleLabel.text=[NSString stringWithFormat:@"%@",model.title];
    self.url = model.url;
}

- (IBAction)playClick:(UIButton *)sender url:(NSString *)url{
    PlayViewController *play = [[PlayViewController alloc] init];
    play.url=self.url;
    [self.window.rootViewController presentViewController:play animated:YES completion:nil];
    
   
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


@end
